//
//  ALTicketController.m
//  Ummy.G
//
//  Created by 安林 on 16/10/5.
//  Copyright © 2016年 安林. All rights reserved.
//

#import "ALTicketController.h"
#import "UIBarButtonItem+buttonItem.h"
@interface ALTicketController ()

@end

@implementation ALTicketController

- (void)viewDidLoad {
    [super viewDidLoad];
    //------返回---------
    UIBarButtonItem *backR = [UIBarButtonItem barButtonItemWith:[UIButton buttonWithType:UIButtonTypeCustom] addTarget:self action:@selector(backRight) andImage:@"navigationButtonReturn" andHighlighted:nil];
    
    self.navigationItem.leftBarButtonItem =backR;
}

- (void)backRight{
    //没有push的时候用这个
    [self dismissViewControllerAnimated:YES completion:nil];
}

+(instancetype)loadALTicketController{
    return [[[NSBundle mainBundle]loadNibNamed:@"ALTicketController" owner:nil options:nil]firstObject];
}


@end
